

class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}{{else}}{{baseName}}{{/if}}{{/if}}(
{{#if isEnum}}
    schemas.EnumBase,
{{/if}}
    {{> model_templates/xbase_schema }}
):
{{#if this.classname}}
    """
{{> partial_class_header}}
{{#if description}}

    {{{unescapedDescription}}}
{{/if}}
    """
{{/if}}
{{#unless isStub}}
{{#or hasValidation isEnum getFormat}}


    class MetaOapg:
{{#if getFormat}}
        format = '{{getFormat}}'
{{/if}}
        {{> model_templates/validations }}
{{#if isEnum}}
{{#with allowableValues}}
        enum_value_to_name = {
{{#each enumVars}}
            {{{value}}}: "{{name}}",
{{/each}}
        }
{{/with}}
{{/if}}
{{/or}}
{{/unless}}
{{#if isEnum}}
    {{> model_templates/enums }}
{{/if}}
{{#if isStub}}
{{#if hasValidation}}
{{#unless isEnum}}
    pass
{{/unless}}
{{/if}}
{{/if}}